package com.dwms.feign;

import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.base.sellerKey.response.SellerKeyResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: SellerKeyController
 * @Description: SellerKey
 * @Create 2025-08-27 14:40:51
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(name = "base-server", path = "/sellerKey")
public interface SellerKeyFeignClient {

    /**
     * 根据appKey查找
     * @param query
     * @return
     */
    @PostMapping("/findByAppKey")
    Result<SellerKeyResponse> findByAppKey(@RequestBody QueryRequest query);

}
